#!/bin/bash
# 对 gnome 的设定做调整

gconftool=`which gconftool-2`
function normal {
SIZE=14
$gconftool -s /desktop/gnome/font_rendering/antialiasing --type=string rgba
$gconftool -s /desktop/gnome/font_rendering/dpi --type=float 96
$gconftool -s /desktop/gnome/font_rendering/hinting --type=string slight
$gconftool -s /desktop/gnome/font_rendering/rgba_order --type=string rgb
$gconftool -s /desktop/gnome/interface/document_font_name --type=string "Sans $SIZE"
$gconftool -s /desktop/gnome/interface/font_name  --type=string "Sans $SIZE"
$gconftool -s /desktop/gnome/interface/monospace_font_name --type=string "Monospace $SIZE"
$gconftool -s /apps/nautilus/preferences/desktop_font --type=string "Sans $SIZE"

# 上下 panel 的宽度
$gconftool -s /apps/panel/toplevels/bottom_panel_screen0/size --type=int 26
$gconftool -s /apps/panel/toplevels/top_panel_screen0/size --type=int 24
}
normal
